package com.lingying.caiwudailikehudaun.mapper.keHuUserLogin;

import com.lingying.caiwudailikehudaun.domain.UserBean;
import com.lingying.caiwudailikehudaun.domain.waiBuRenYuan.WaiBuRenYuanBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface KuHuUserLoginMapper {

    /**
     * 根据当前手机号查询用户表，查询当前用户是否已注册
     * @param userPhone  当前输入的手机号
     * @return
     */
//    @Select("select * from fpKeHuUser where keHuUsePhone=#{userPhone}")
//    FenPeiKeHuUser selectFenPeiUserByPhone(String userPhone);

    /**
     * 根据当前手机号查询用户表，查询当前用户是否已注册
     * @param userPhone  当前输入的手机号
     * @return
     */
    @Select("select * from user where phone=#{userPhone}")
    UserBean selectUserByPhone(String userPhone);


    @Select("select * from waiBuRenYuan where phone=#{username}")
    List<WaiBuRenYuanBean> keHuUserLogin(String username);
}

















